/**
 * 
 */
package ec.edu.uce.erp.web.datamanager;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ec.edu.uce.erp.ejb.persistence.entities.CompaniaDTO;

/**
 * @author 
 *
 */
@SessionScoped
@ManagedBean (name ="companiaDataManager")
public class CompaniaDataManager implements Serializable{
	
	private static final Logger slf4jLogger = LoggerFactory.getLogger(CompaniaDataManager.class);
	
	private static final long serialVersionUID = 1L;
	private CompaniaDTO companiaInstancia;
	private CompaniaDTO companiaEditar;
	
	private List<CompaniaDTO> listaCompania;
	
	public CompaniaDataManager () {}
	
	@PostConstruct
	public void inicializarObjetos () {
		
		slf4jLogger.info("inicializarObjetos");
		
		this.companiaInstancia = new CompaniaDTO();
		this.companiaEditar = new CompaniaDTO();
		this.listaCompania = new ArrayList<CompaniaDTO>();
	}

	public CompaniaDTO getCompaniaInstancia() {
		return companiaInstancia;
	}

	public void setCompaniaInstancia(CompaniaDTO companiaInstancia) {
		this.companiaInstancia = companiaInstancia;
	}

	public CompaniaDTO getCompaniaEditar() {
		return companiaEditar;
	}

	public void setCompaniaEditar(CompaniaDTO companiaEditar) {
		this.companiaEditar = companiaEditar;
	}

	public List<CompaniaDTO> getListaCompania() {
		return listaCompania;
	}

	public void setListaCompania(List<CompaniaDTO> listaCompania) {
		this.listaCompania = listaCompania;
	}
	
	

}
